home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / FAMOUS2F.422 < prev    next >
Text File  |  1993-04-16  |  5KB  |  130 lines

  1. Hangup on users that hangup on you! (Fixed ver of FAMOUS2)
  2. Famous Star #1 @6971 3≡7Cha-CHING!¡!¡3≡
  3. Wed Apr 14 04:30:46 1993
  4. ╔═══════════════════════════════════════════════════════════════════════════╗
  5. ║ Mod Name     : FAMOUS2F.MOD  (REVENGE for users that hang up!)            ║
  6. ║ Filename     : FAMOUS2F.MOD                     Mod Version  : 3.0 (fix)  ║
  7. ║ Author       : Famous Star [619-451-2174,,,11]  Date         : 04/14/93   ║
  8. ║ WWIV Version : 4.21a                            Files : COM.C, LILO.C     ║
  9. ║ Difficulty   : █▒▒▒▒▒▒▒▒▒  (Can you say "Hi. Welcome to Carl's Jr. May I  ║
  10. ║                      take your order please?")             ║
  11. ║ Description  : Don't you hate it when users nang up on your board?!?!     ║
  12. ║   It's especially annoying when the drop carrier and cause the board to   ║
  13. ║   stall (and you're not home to press the [RESET] button!  Welp, now you  ║
  14. ║   can get even with these assholes (that's why it uses the 'ass_pts'      ║
  15. ║   accumulator)!  This will send a message to the user each time they hang ║
  16. ║   up on the system.  After 3 hangups, it will show them an ANSI and then  ║
  17. ║   the board hangs up on the USER!!!  *** This is a FIXed version of my    ║
  18. ║   original FAMOUS2.MOD ***                                                ║
  19. ╚═══════════════════════════════════════════════════════════════════════════╝
  20. ┌───────────────────────────────────────────────────────────────────────────┐
  21. │ Disclaimer: If your computer gets stoned, your daughter gets pregnant, or │
  22. │    your little brother decides that 'FORMAT C:/U' is the latest in cool   │
  23. │    video games-  and doesn't understand what 'WARNING, ALL DATA ON NON=   │
  24. │    REMOVABLE DRIVE C: WILL BE LOST!  Proceed with format (Y/N)?_' means,  │
  25. │    then don't come crying to me!                                          │
  26. └───────────────────────────────────────────────────────────────────────────┘
  27. ┌───────────────────────────────────────────────────────────────────────────┐
  28. │ "My board keeps locking-up!"  PLEASE - backup your source before ANY mod. │
  29. └───────────────────────────────────────────────────────────────────────────┘
  30.  
  31. On with the mod...
  32.  
  33. Load up LILO.C and make the following changes in 'void logon'.  Note: '=' means
  34. exhisting lines and '+' means ADD this line.  When you're finished, REMOVE the
  35. '=' and '+'s before you compile!
  36.  
  37.  
  38. =  if (incom && live_user) {
  39. =    i=printfile("LOGON");
  40. =    if ((!i) && (!(thisuser.sysstatus & sysstatus_pause_on_page)))
  41. =      pausescr();
  42. =  }
  43. +  if(thisuser.ass_pts>=5){
  44. +  outchr(12);
  45. +  printfile("asspts.msg");
  46. +  sysoplog("1* 2Board hung up on user 6BELOW2, because they hungup on the board 5th0
  47. ree times2! 1*");0
  48. +  thisuser.ass_pts=0;
  49. +  hangup=1;
  50. +  }
  51. =  strcpy(xdate,date());
  52.  
  53. Now load up COM.C.  Replace  'void checkhangup' with mine below.
  54.  
  55.  
  56. void checkhangup(void)
  57. /* This function checks to see if the user logged on to the com port has
  58.  * hung up.  Obviously, if no user is logged on remotely, this does nothing.
  59.  * If carrier detect is detected to be low, it is checked 100 times
  60.  * sequentially to make sure it stays down, and is not just a quirk.
  61.  */
  62. {
  63.   int i, ok;
  64.   char s[81], u[81]; /* <-- (Fix:04/14/93)  I forgot the u[81] in there! */
  65.   unsigned short un;
  66.   if (!hangup && using_modem && !cdet()) {
  67.     ok = 0;
  68.     for (i = 0; (i < 500) && !ok; i++)
  69.       if (cdet())
  70.         ok = 1;
  71.     if (!ok) {
  72.       thisuser.ass_pts=thisuser.ass_pts+1;
  73.       hangup = hungup = 1;
  74.       if (useron && !in_extern) {
  75.      sprintf(u,"%c4You hungup on your last call.  Don't do it again!!!",3);
  76.         ssm(usernum,0,u);
  77.     sysoplog("4Hung Up0.");
  78.       }
  79.     }
  80.   }
  81. }
  82.  
  83.  
  84. Okay, now quit your editor and type MAKE to compile.
  85.  
  86. Now block copy the following into a file called 'ASSPTS.MSG' and pu it in
  87. your '\GFILES' directory.
  88.  
  89. /* BEGIN BLOCK COPY */
  90.  
  91. 6Question7:0
  92. 7---------0
  93. 2Do you NORMALLY end a phone conversation by HANGING UP THE PHONE *WITHOUT*0
  94. 2SAYING "GOODBYE"3?!?!!0
  95.  
  96. 1I think NOT!0
  97.  
  98. 5According to our records you have HUNG-UP on the me 6FIVE TIMES5 already!  Even0
  99. 5though I am a machine, I have feelings just like a human being.  I think it is0
  100. 5EXTREMELY rude to hang-up on somebody like you did to me.  I hope you don't0
  101. 5hang-up on your friends without saying "bye" first.  If so, you won't have0
  102. 5very many friends for long!0
  103.  
  104. 1Please do not do this any more!!!0
  105.  
  106. 4AS PUNISHMENT, I (THE COMPUTER) WILL NOW HANG UP ON  *YOU*!!!0
  107.  
  108. 1Call right back as long as you promise not to hangup again!0
  109.  
  110. 2From now on, PLEASE USE THE '0O2' COMMAND FROM THE MAIN MENU TO LOGOFF!  AND0
  111. 2*NEVER* HANGUP ON AN ONLINE GAME - just be patient!0
  112.  
  113.  
  114. 6Good day..............0
  115.  
  116. 7 0
  117. 2- The Computer0
  118.  
  119. /* END BLOCK COPY */
  120.  
  121. Let me know how you like this one...and if it works with 4.22!
  122. Thanks...
  123.  
  124.  
  125. 2≡5ƒÅ/\/\φù$ 6*5 ⌠╪åτ2≡0
  126. 2             5⌡0
  127.  
  128. 2■7 5Famous0 6*0 5Star7'5s BBS0 5 1619-451-21746,,,110 6 4Cha-CHING!0 3IceNET 7@36971  LaMeNeT 7@33 2■0
  129.  
  130.